package org.noip.milhous.clause;

import org.noip.milhous.SQLInterface;

public class FieldRename implements SQLInterface
{
	String sql;

	public FieldRename(Object f, String name)
		{
			String field = Utilities.getField(f);
			sql = " " + field + " AS " + name + " ";

		}

	public String toSQL()
		{
			return sql;
		}

	public String toInternalSQL()
		{
			return toSQL();
		}
}
